<#noparse>
<#assign readOnly="">
<#if method="toDetail">
<#assign readOnly="readOnly">
</#if>
</#noparse>
<html>
  <head>
    <title>FreeMarker</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<link href="${"$"}{request.contextPath?if_exists}/style/style.css" rel="stylesheet" />    
    <script language="javascript" type="text/javascript">
    	function create(){
    		with(document.mainForm){
    			action="${action.className?uncap_first}!create.action";
    			submit();
    		}
    		return false;
    	}
    	
    	function update(){
    		with(document.mainForm){
    			action="${action.className?uncap_first}!update.action";
    			submit();
    		}
    		return false;
    	}
    	
    	function goBack(){
    		with(document.mainForm){
    			action="${action.className?uncap_first}.action";
    			submit();
    		}
    		return false;
    	}
    
    </script>    
  </head>
  <body>
    <h2>${valueObject.tableModel.comments?if_exists}详细信息</h2>
    <form name="mainForm" action="userAction!toList" method="post">
    <#include "toolstable.input.ftl"/>
    <table class="inputTable" cellspacing="0" cellpadding="0">
		<tr>
    		<#foreach field in valueObject.fields?if_exists>
    		<#if (field_index%3==0 && field_index>0) >
    	</tr>
    	<tr>
	    		<td class="lable">${field.notation?default(field.name)}</td>
	    		<#if field.name = valueObject.pkField.name>
    			<td class="text"><input id="${field.name}" name="${valueObject.className?uncap_first}.${field.name}" value="${"$"+"{"}${valueObject.className?uncap_first}.${field.name}?if_exists}" readOnly/></td>
    			<#else>
    			<td class="text"><input id="${field.name}" name="${valueObject.className?uncap_first}.${field.name}" value="${"$"+"{"}${valueObject.className?uncap_first}.${field.name}?if_exists}" ${"$"}{readOnly}/></td>
    			</#if>
    		<#else>
    			<td class="lable">${field.notation?default(field.name)}</td>
	    		<#if field.name = valueObject.pkField.name>
    			<td class="text"><input id="${field.name}" name="${valueObject.className?uncap_first}.${field.name}" value="${"$"+"{"}${valueObject.className?uncap_first}.${field.name}?if_exists}" readOnly/></td>
    			<#else>
    			<td class="text"><input id="${field.name}" name="${valueObject.className?uncap_first}.${field.name}" value="${"$"+"{"}${valueObject.className?uncap_first}.${field.name}?if_exists}" ${"$"}{readOnly}/></td>
    			</#if>
    		</#if>
			</#foreach>
		</tr>
    </table>

    </form>

  </body>
</html>